package org.jeecg.modules.htxincailiao.order.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ht_order_shop
 * @Author: jeecg-boot
 * @Date:   2021-08-05
 * @Version: V1.0
 */
@Data
@TableName("ht_order_shop")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_order_shop对象", description="ht_order_shop")
public class HTOrderShop implements Serializable {
    private static final long serialVersionUID = 1L;

	/**订单店铺ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "订单店铺ID")
    private String id;
	/**订单父ID*/
	@Excel(name = "订单父ID", width = 15)
    @ApiModelProperty(value = "订单父ID")
    private String orderParentId;
	/**订单ID*/
	@Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
    private String orderId;
	/**店铺ID*/
	@Excel(name = "店铺ID", width = 15)
    @ApiModelProperty(value = "店铺ID")
    private String shopId;
	/**下单时店铺名*/
	@Excel(name = "下单时店铺名", width = 15)
    @ApiModelProperty(value = "下单时店铺名")
    private String shopName;
	/**下单时留言*/
	@Excel(name = "下单时留言", width = 15)
    @ApiModelProperty(value = "下单时留言")
    private String leaveMessage;
	/**下单时商品数量店铺小计*/
	@Excel(name = "下单时商品数量店铺小计", width = 15)
    @ApiModelProperty(value = "下单时商品数量店铺小计")
    private Integer subtotalQuantity;
	/**下单时商品金额店铺小计*/
	@Excel(name = "下单时商品金额店铺小计", width = 15)
    @ApiModelProperty(value = "下单时商品金额店铺小计")
    private BigDecimal subtotalAmount;
	/**下单时优惠金额店铺小计*/
	@Excel(name = "下单时优惠金额店铺小计", width = 15)
    @ApiModelProperty(value = "下单时优惠金额店铺小计")
    private BigDecimal subtotalDiscountAmount;
	/**按店铺支付金额*/
	@Excel(name = "按店铺支付金额", width = 15)
    @ApiModelProperty(value = "按店铺支付金额")
    private BigDecimal subtotalPaymentAmount;
	/**运费*/
	@Excel(name = "运费", width = 15)
    @ApiModelProperty(value = "运费")
    private BigDecimal subtotalFreight;
	/**订单状态：0-待付款、1-待发货、2-待收货、3-已完成、4-已取消*/
	@Excel(name = "订单状态：0-待付款、1-待发货、2-待收货、3-已完成、4-已取消", width = 15)
    @ApiModelProperty(value = "订单状态：0-待付款、1-待发货、2-待收货、3-已完成、4-已取消")
    private Integer status;
	/**逻辑删除：1表示删除，0表示未删除。*/
	@Excel(name = "逻辑删除：1表示删除，0表示未删除。", width = 15)
    @ApiModelProperty(value = "逻辑删除：1表示删除，0表示未删除。")
    private Integer isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @TableField(exist = false)
    private Integer pageNo;

    @TableField(exist = false)
    private Integer pageSize;
}
